<script lang="ts">
export default {
  name: 'App'
}
</script>

<template>
  <main>
    <Hello v-if="isHello"/>
    <button @click="des">销毁Hello</button>
  </main>
</template>

<script setup lang="ts">
import Hello from './components/hello.vue'
import { ref } from 'vue';
let isHello = ref(true);

function des() { 
  isHello.value = false
}
</script>
